//
//  YMVerifyPayPasswordViewController.swift
//  Driver
//
//  Created by lantaiyuan on 2017/10/27.
//  Copyright © 2017年 youmy. All rights reserved.
//

import UIKit

class YMVerifyPayPasswordViewController: UIViewController {
    
    @IBOutlet weak var passwordView: YMPasswordInputView!
    
    override func viewDidLoad() {
        super.viewDidLoad()

        passwordView.finished = {[weak self](text)
            in
            self?.verifyPayPassword(text)
        }
    }
    
    private func verifyPayPassword(_ oldPayPassword: String){
        
        let vc = UIStoryboard(name: "Home", bundle: nil).instantiateViewController(withIdentifier: "setPayPassword") as! YMSetPayPasswordViewController
        vc.comefromRestOldPassword(true)
        navigationController?.pushViewController(vc, animated: true)
    }
    
}
